/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.cslg.dorm.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.cslg.dorm.entity.DormRoom;
import com.thinkgem.jeesite.cslg.dorm.dao.DormRoomDao;

/**
 * 宿舍表Service
 * @author 张文锦
 * @version 2017-01-08
 */
@Service
@Transactional(readOnly = true)
public class DormRoomService extends CrudService<DormRoomDao, DormRoom> {

	public DormRoom get(String id) {
		return super.get(id);
	}
	
	public List<DormRoom> findList(DormRoom dormRoom) {
		return super.findList(dormRoom);
	}
	
	public Page<DormRoom> findPage(Page<DormRoom> page, DormRoom dormRoom) {
		page.setOrderBy("ssh");
		return super.findPage(page, dormRoom);
	}
	
	@Transactional(readOnly = false)
	public void save(DormRoom dormRoom) {
		super.save(dormRoom);
	}
	
	@Transactional(readOnly = false)
	public void delete(DormRoom dormRoom) {
		super.delete(dormRoom);
	}
	
}